package com.cheer.service;

import com.cheer.dto.OaUserRegisterDTO;
import com.cheer.entity.ExMatchUserEntity;
import com.cheer.entity.OaUserEntity;
import com.cheer.vo.SendInfoVO;
import com.cheer.vo.ShareTicketVO;

import javax.servlet.http.HttpSession;

/**
 * @author cheer
 */
public interface AuthService {

    /**
     * 登陆
     * @param code
     * @param session
     * @return
     */
    String login(String code, HttpSession session);

    Integer register(OaUserRegisterDTO userRegisterDTO);

    ShareTicketVO share(String url);

    Integer getUserId(HttpSession session);

    ExMatchUserEntity getExUserByOpenId(HttpSession session);

    ExMatchUserEntity getExUserByOpenId(HttpSession session, OaUserEntity oaUser);

    String getOpenid(HttpSession session);

    String getNickname(HttpSession session);

    String getHeadImgUrl(HttpSession session);

    ShareTicketVO sign();

}
